function scoreFun(object, opts) {
	var now_cli;
	object.find("i").each(function(index, element) {
		$(this).click(function() {
			console.log(1)
			now_cli = index+1;
			appraisalStar(now_cli, object)
		});
		$(this).mouseenter(function() {
			console.log(2)
			appraisalStar(index+1, $(this))
		});
		/*$(this).mouseleave(function() {
			console.log(3)
			if (now_cli >= 0) {
				 $(this).removeClass("addColor");
			} else {
			}
		})*/
	});

};

function appraisalStar(star, id) {
	var j = star;
	$(id).parent().children('i').removeClass('addColor');
	$(id).parent().children('.aui-col-xs-2').children('span').html(star);
	for (var i = 0; i < j; i++) {
		$(id).parent().children('i').eq(i).addClass('addColor');
	}
}